package org.southyin.securitysamples.mapper;

import org.apache.ibatis.annotations.Param;
import org.southyin.securitysamples.model.Role;

import java.util.List;

public interface RoleMapper {
    List<Role> listRoles();

    int delRoles(Long id);

    int insertRoles(@Param("id") Long id,@Param("rids") List<Long> role);

    int isAdmin(Long id);
}
